package com.erlinyou.im.service.goodfirend;

import java.util.List;
import java.util.Map;

import com.erlinyou.base.service.BaseService;
import com.erlinyou.im.model.goodfirend.Goodfirend;
import com.erlinyou.im.model.goodfirend.GoodfirendKey;

public interface GoodfirendService extends BaseService<Goodfirend, GoodfirendKey>{

	Goodfirend findByUseridAndJid(Long userId, Long rid);

	boolean delGoodFriend(Long userId, long rid, String gid);

	Goodfirend findByUseridAndJidAndRelation(Long userId, long rid, int i);

	List<Goodfirend> findByUserid(Long userId);

	List<Map<String, Object>> findByUseridAndRelation(Long userid);

	List<Integer> selectRoster(Long userId);
	
	List<Integer> selectRoster1(Long userId);

	List<Integer> queryUserid(Long userId);

}
